package at.codejedi.sto.controller.combat;

import at.codejedi.sto.controller.lazy.LazyViewController;
import at.codejedi.sto.gui.combat.BattleDetailView;
import at.codejedi.sto.model.combat.PlayerBattle;

public class BattleController extends LazyViewController<BattleDetailView>
		implements IDetailController {

	private PlayerBattle battle;

	public BattleController(PlayerBattle b) {
		battle = b;
	}

	@Override
	public BattleDetailView createLazyView() {
		return new BattleDetailView();
	}

	@Override
	public void initialLoaded() {
		getView().displayBattle(battle);

	}

}
